package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 睡眠记录对象 fit_sleep
 * 
 * @author ruoyi
 * @date 2025-05-14
 */
public class FitSleep extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 入睡时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "入睡时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sleepStart;

    /** 醒来时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "醒来时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sleepEnd;

    /** 睡眠质量（0优 1良 2差） */
    @Excel(name = "睡眠质量", readConverterExp = "0=优,1=良,2=差")
    private String sleepQuality;

    /** 是否做梦（0否 1是） */
    @Excel(name = "是否做梦", readConverterExp = "0=否,1=是")
    private String dream;

    /** 删除标志（0存在 1删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setSleepStart(Date sleepStart) 
    {
        this.sleepStart = sleepStart;
    }

    public Date getSleepStart() 
    {
        return sleepStart;
    }

    public void setSleepEnd(Date sleepEnd) 
    {
        this.sleepEnd = sleepEnd;
    }

    public Date getSleepEnd() 
    {
        return sleepEnd;
    }

    public void setSleepQuality(String sleepQuality) 
    {
        this.sleepQuality = sleepQuality;
    }

    public String getSleepQuality() 
    {
        return sleepQuality;
    }

    public void setDream(String dream) 
    {
        this.dream = dream;
    }

    public String getDream() 
    {
        return dream;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("sleepStart", getSleepStart())
            .append("sleepEnd", getSleepEnd())
            .append("sleepQuality", getSleepQuality())
            .append("dream", getDream())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
